package com.hotel.app.controller;

import cn.hutool.core.convert.NumberWithFormat;
import com.hotel.app.service.HotelRoomRateFeign;
import com.hotel.common.config.SystemConfig;
import com.hotel.common.param.UserRoomRate;
import com.hotel.common.util.JwtUtil;
import com.hotel.common.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * --- 天道酬勤 ---
 *
 * @author TRC
 * @date 2024/6/22
 * @desc
 */
@Api(value = "用户给房间评分")
@RestController
@RequestMapping("/api/hotel/roomRate")
public class HotelRoomRateController {

    @Autowired
    private HotelRoomRateFeign hotelRoomRateFeign;

    @RequestMapping("/show")
    public R showUserRoomRate(@RequestBody UserRoomRate userRoomRate) {

        return hotelRoomRateFeign.showUserRoomRate(userRoomRate);

    }

    @RequestMapping("/change")
    public R changeUserRoomRate(@RequestBody UserRoomRate userRoomRate) {

        return hotelRoomRateFeign.changeUserRoomRate(userRoomRate);

    }

}
